import { getNewAddress } from "@/services";
const state = {
  newAddressList: [],
};

const mutations = {
  getNewAddressS(state, payload) {
    state.newAddressList = payload
    console.log(state.newAddressList,'+++---');
  },
};

const actions = {
  async getNewAddress({ commit },id) {
    let result = await getNewAddress(id);
    commit("getNewAddressS",result);
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
